package cn.zhaoyuening.crm.service.impl;

import java.util.List;

import cn.zhaoyuening.crm.dao.DepartmentDao;
import cn.zhaoyuening.crm.domain.CrmDepartment;
import cn.zhaoyuening.crm.service.DepartmentService;

public class DepartmentServiceImpl implements DepartmentService{
	private DepartmentDao departmentDao;

	@Override
	public List<CrmDepartment> findAll() {
		List<CrmDepartment> list = departmentDao.findAll();
		return list;
	}

	@Override
	public CrmDepartment getCrmDepartmentById(String id) {
		CrmDepartment department = departmentDao.findById(id);
		return department;
	}


	
	//======get&seet=====
	public DepartmentDao getDepartmentDao() {
		return departmentDao;
	}

	public void setDepartmentDao(DepartmentDao departmentDao) {
		this.departmentDao = departmentDao;
	}
	
	

}
